package com.xy.dp.decorator;

public class Decorator extends Car {
    private Car car;

    public void setCar(Car car) {
        this.car = car;
    }

    @Override
    public int getCost() {
        return car.getCost() + 100;
    }

    @Override
    public String getDesciption() {
        return car.getDesciption() + "GPS";
    }
}
